home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / tutorials / custEducation / opengl2 / examples / adv_texture / README < prev    next >
Encoding:
Text File  |  1996-11-11  |  2.4 KB  |  68 lines

  1.  
  2.         to compile programs in the above-indicated sub- directories/trees, 
  3.        one must load libglut. inst-able images of GLUT v3.1 are located at 
  4.                 toolbox/src/exampleCode/opengl/GLUT/inst/ 
  5.  
  6.                   -------------------------------------
  7.  
  8.        ~opengl2/examples/adv_texture README
  9.  
  10.             Copyright 1991-1996, Silicon Graphics,  Inc.
  11.             Technical Education Development
  12.             All Rights Reserved.
  13.  
  14.         A collection of programs demonstrating some 
  15.         advanced texture mapping features in OpenGL.
  16.    
  17.  
  18.    texgen.c
  19.     Reads in a texture from a .rgb file, sets up the texture and
  20.     the texture environment, then applies the texture to a polygon
  21.     using automatically generated texture coordinates.
  22.  
  23.     <g> key        - toggle between object/eye linear coordinate generation
  24.     Escape key    - exit the program
  25.  
  26.  
  27.    reflection.c
  28.     Reads in a texture from a .rgb file, sets up the texture and a
  29.     sphere map texture environment, then applies the texture to a
  30.     torus using shere map automatically generated texture coordinates.
  31.  
  32.     Escape key    - exit the program
  33.  
  34.    tex_dlists.c:  demonstrates how to put textures in display lists.
  35.  
  36.     This program draws four contiguous polygons.  Each polygon has
  37.     a checkerboard pattern mapped onto it.  The first pair have
  38.     appropriate borders while the second pair have no border and
  39.     therefore blend at their edges with the assigned
  40.     GL_TEXTURE_BORDER_COLOR.
  41.  
  42.     If the minification and magnification filters are set to blend
  43.     texels, a seam will show up at the boundary between one texture
  44.     and the next unless a border is provided on each texture which
  45.     imitates the nearest texels of the adjacent texture map.
  46.  
  47.     <a> key        - toggle animation on/off
  48.     <f> key        - toggle between linear/nearest filters
  49.     Escape key    - exit the program
  50.  
  51.  
  52.    copy_texture.c - demonstrates the GL_EXT_texture_objects, GL_EXT_subtexture
  53.     and GL_EXT_copy_texture extensions.  It renders a grid with
  54.     a textured rectangle in front of it.  When the left mouse button is
  55.     pressed, a 32x32 pixel area around the cursor is read as a texture
  56.     and used to replace part of the currently bound texture on the 
  57.     rectangle.
  58.  
  59.     Left Mouse Button    - copy pixels under cursor
  60.     <o> key            - cycle through texture objects
  61.     Escape key        - exit the program
  62.  
  63.    texture3D.c - simple demonstration of a 3D texture. The program displays 
  64.     the 3D texture by drawing a series of quads that slice through the 
  65.     texture coordinate space.
  66.  
  67.     Escape key        - exit the program
  68.